package com.shoppingmall.service;

import com.shoppingmall.common.ServletResponse;
import com.shoppingmall.pojo.User;

/**
 * Created by touni on 2019/3/18 15:38
 */

public interface UserService {


    ServletResponse<User> userLogin(String username, String password);
    ServletResponse<Integer> checkValue(String value,Integer type);

    ServletResponse userRegister(User user);

    ServletResponse getUserQuestionByUsername(String username);

    ServletResponse<User> checkUserAnswer(String username, String question, String answer);

    ServletResponse resetPasswordByAnswer(String username, String passwordNew);

    ServletResponse resetPasswordByPassword(String username, String passwod, String passwordNew);


    ServletResponse updateUserInformation(String username, String email, String phone, String question, String answer);
}
